package com.funo.main.entities;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "U_ROLE")
public class Role implements Serializable{
	
	private static final long serialVersionUID = -4601802013169678653L;

	//主键Id
	@Id
	@Column(name = "ROLE_ID")
	private String id;
	
	@Column(name = "ORG_ID")
	private String orgId;
	
	//角色名
	@Column(name = "NAME")
	private String name;
	
	//注释
	@Column(name = "COMMENTS")
	private String comments;
	
	//操作时间
	@Column(name = "OP_TIME")
	@Temporal(TemporalType.TIMESTAMP)
	private Date opTime;
	
	//操作人姓名
	@Column(name = "OP_USER_NAME")
	private String opUserName;
	
	//角色等级,0-功能角色,10-部门管理员,20-管理员,30-超级管理员,后期可根据需求自定义
	@Column(name = "ROLE_LEVEL")
	private Integer roleLevel;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public Date getOpTime() {
		return opTime;
	}

	public void setOpTime(Date opTime) {
		this.opTime = opTime;
	}

	public String getOpUserName() {
		return opUserName;
	}

	public void setOpUserName(String opUserName) {
		this.opUserName = opUserName;
	}

	public Integer getRoleLevel() {
		return roleLevel;
	}

	public void setRoleLevel(Integer roleLevel) {
		this.roleLevel = roleLevel;
	}
	
}
